﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Devices.Radio;
using System.ComponentModel;

namespace Radio
{
    public class Helper
    {
        public static bool CheckAntenna()
        {
            if (FMRadio.Instance.SignalStrength <=2f)
                MessageBox.Show("系统检测到FM信号较弱，可能是您没有插入耳机，请插入耳机或到靠近窗口的位置");
            return FMRadio.Instance.SignalStrength == 0;
        }
    }

    public class Fm : INotifyPropertyChanged
    {
        public string Name { get; set; }
        public string Frequency
        {
            get;
            set;
        }

        public event PropertyChangedEventHandler PropertyChanged;
    }

}
